/**
 * Created by asus on 2017/5/4.曹中义
 */
define([], function () {
    var tpl = {};
    tpl.init = function () {
        var html = '';
        html += table();
        return html;
    }
    tpl.init2 = function () {
        var html = '';
        html += queue();
        return html;
    }
    var table = function () {
        return '<script id="table" type="text/html">' +
            '	{{each rows as value}}' +
            '<tr >' +
            '    <td>{{value.createTime}}</td>' +
            '    <td>{{value.patientName}}</td>' +
            '    <td>{{value.age}}</td>' +
            '    <td>{{value.pregnancyWeek}}</td>' +
            '    <td><button id="{{value.patientId}}" class="see">查看</button></td>' +
            '</tr>' +
            '	{{/each}}' +
            '</script>';
    }
    var queue = function () {
        return '<script id="inQueue" type="text/html">' +
            '	{{each rows as value}}' +
            '    <option value="{{value.id}}">{{value.queueName}}</option>' +
            '	{{/each}}' +
            '</script>';
    }
    return tpl;
});
